<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>商铺</title>
	<hdjs/>
	<bootstrap/>
	<css file="__PUBLIC__/Css/public.css" />
	<js file='__PUBLIC__/Js/public.js' />
</head>
<body>
	
	<form action="" class ='hd-form' name='form' method="post">
	<div class="wrap">
	<div class="menu_list">
		<ul>
			<li><a href="javascript:;"  class="action"> 商铺列表 </a></li>
			<li><a href="{|U:'Shop/add'}"> 添加商铺 </a></li>
		</ul>
	</div>
	<table class='table table-striped table-bordered'>
	<tr>
		<td width="8%"  align="center"><input type="checkbox"  class='checkall' /></td>
		<td >商铺名称</td>
		<td width='20%'>商铺地址</td>
		<td width='20%'>地铁地址</td>
		<td width="15%">商铺电话</td>
		<td width="15%">操作</td>
	</tr>
	<if value='$shop'>
	<foreach from='$shop' value='$v'>
	<tr>
		<td align="center"><input type="checkbox" name='shopid[{$v.shopid}]' value="{$v.shopid}" /></td>
		<td>{$v.shopname}</td>
		<td>{$v.shopaddress}</td>
		<td>{$v.metroaddress}</td>
		<td>{$v.shoptel}</td>
		<td>
			<a href="{|U:'Goods/index',array('shopid'=>$v['shopid'])}">查看商品</a>
			<a href="{|U:'Shop/edit',array('shopid'=>$v['shopid'])}">编辑</a> 
			<a href="javascript:;" onclick="var url='{|U:'Shop/del',array('shopid'=>$v["shopid"])}'; hd_confirm(' 确定删除吗？ ',function(){location.href=url})">删除</a>
		</td>
	</tr>
	</foreach>
	<tr>
		<td class='page' colspan="6">{$page}</td>
	</tr>
	<else />
		<tr>
			<td colspan="6">没有找到符合条件的记录</td>
		</tr>
	</if>

	</table>
	</div>
	<div class='position-bottom'>
		<input type="button" class='hd-cancel all' value='全选' />
		<input type="button" class='hd-cancel cancel' value='反选' />
		<input type="button" class='hd-cancel del' value='删除'/>
	</div>
	</form>
</body>
</html>